<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>trade Registration</title>
</h:head>
<h:body bgcolor="#ffffff" link="#000099">
<h:form>
<table style="font-size: smaller">
		<tbody>
			<tr>
				<td bgcolor="#c93333" align="left" width="640" height="10"><b><font
					color="#ffffff">DayTrader Register</font></b></td>
				<td align="center" bgcolor="#000000" width="100" height="10"><font
					color="#ffffff"><b>DayTrader</b></font></td>
			</tr>
		</tbody>
	</table>
	<table width="740" height="30">
		<tbody>
			<tr>
				<td align="center"></td>
				<td><font color="#ff3333"><h:outputLabel value="#{tradeapp.results}"></h:outputLabel></font></td>
				<td></td>
			</tr>
		</tbody>
	</table>
	<table width="665">
		<tbody>
			<tr>
				<td width="2%" bgcolor="#e7e4e7"></td>
				<td width="98%" colspan="8"><b>Register</b>
				<hr/>
				</td>
			</tr>
		</tbody>
	</table>
	
	<table width="665">
		<tbody align="right">
			<tr>
				<td width="2%" bgcolor="#e7e4e7" rowspan="11"></td>
				<td width="33%" colspan="4" align="right"><font COLOR="#FF0000">*</font><b>Full
				name:</b></td>
				<td width="20%" colspan="2" align="right"><h:inputText id="fullname" value="#{tradeapp.fullname}" required="true"><f:validateLength minimum="1" maximum="12"/></h:inputText></td>
				<td width="2%" bgcolor="#e7e4e7" rowspan="11"></td>
			</tr>
			<tr>
				<td colspan="4" align="right"><font COLOR="#FF0000">*</font><b>Address:</b></td>
				<td colspan="2" align="right"><h:inputText id="address" value="#{tradeapp.address}" required="true"> <f:validateLength minimum="1" maximum="40"/></h:inputText></td>
			</tr>
			<tr>
				<td colspan="4" align="right"><font COLOR="#FF0000">*</font><b>E-Mail
				address:</b></td>
				<td colspan="2" align="right"><h:inputText id="email" value="#{tradeapp.email}" required="true"> <f:validateLength minimum="1" maximum="40"/></h:inputText></td>
			</tr>
			<tr>
				<td colspan="4">&nbsp;</td>
				<td colspan="2" align="right">&nbsp;</td>
			</tr>
			<tr>
				<td colspan="4" align="right"><font COLOR="#FF0000">*</font><b>User
				ID:</b></td>
				<td colspan="2" align="right">
				<h:inputText id="uid" value="#{tradeapp.userID}" required="true"><f:validateLength minimum="1" maximum="40"/></h:inputText></td>
			</tr>
			<tr>
				<td colspan="4" align="right"><b><font COLOR="#FF0000">*</font>Password:</b></td>
				<td colspan="2" align="right"><h:inputSecret id="password" value="#{tradeapp.password}" required="true"><f:validateLength minimum="1" maximum="40"/></h:inputSecret></td>
			</tr>
			<tr>
				<td colspan="4" align="right"><b><font COLOR="#FF0000">*</font>Confirm
				password:</b></td>
				<td colspan="2" align="right"><h:inputText id="cpassword" value="#{tradeapp.cpassword}" required="true"><f:validateLength minimum="1" maximum="40"/></h:inputText></td>
			</tr>
			<tr>
				<td colspan="4">&nbsp;</td>
				<td colspan="2" align="right">&nbsp;</td>
			</tr>
			<tr>
				<td colspan="4" align="right"><font COLOR="#FF0000">*</font><b>Opening
				account balance:</b></td>
				<td colspan="2" align="right">$<b> </b><h:inputText id="money" value="#{tradeapp.money}" required="true"><f:validateLength minimum="1" maximum="20"/></h:inputText></td>
			</tr>
			<tr>
				<td colspan="4" align="right"><b><font COLOR="#FF0000">*</font>Credit
				card number:</b></td>
				<td colspan="2" align="right">&nbsp;&nbsp;<h:inputText id="ccn" value="#{tradeapp.ccn}" required="true"><f:validateLength minimum="1" maximum="40"/></h:inputText></td>
			</tr>
			<tr>
				<td align="center"></td>
				<td align="center"></td>
				<td align="center"></td>
				<td align="center"></td>
				<td align="center"></td>
				<td align="center"><h:commandButton id="submit" type="submit" value="Register" action="#{tradeapp.register}"/></td>
			</tr>
			<tr>
				<td align="right" colspan="6"></td>
			</tr>
		</tbody>
	</table>
	
	<table height="54" style="font-size: smaller">
		<tbody>
			<tr>
				<td colspan="2">
				<hr/>
				</td>
			</tr>
			<tr>
				<td colspan="2"></td>
			</tr>
			<tr>
				<td bgcolor="#c93333" align="left" width="640" height="10"><b><font
					color="#ffffff">DayTrader Register</font></b></td>
				<td align="center" bgcolor="#000000" width="100" height="10"><font
					color="#ffffff"><b>DayTrader</b></font></td>
			</tr>
		</tbody>
	</table>
	</h:form>
	</h:body>
</html>
